package cn.iocoder.yudao.module.shop.controller.admin.giftitem.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;
import java.util.*;
import java.time.LocalDateTime;
import java.time.LocalDateTime;
import javax.validation.constraints.*;

/**
 * 礼品项 Base VO，提供给添加、修改、详细的子 VO 使用
 * 如果子 VO 存在差异的字段，请不要添加到这里，影响 Swagger 文档生成
 */
@Data
public class ShopGiftItemBaseVO {

    @Schema(description = "名字", requiredMode = Schema.RequiredMode.REQUIRED, example = "张三")
    @NotNull(message = "名字不能为空")
    private String name;

    @Schema(description = "指向项目id", requiredMode = Schema.RequiredMode.REQUIRED, example = "9748")
    @NotNull(message = "指向项目id不能为空")
    private Long bizId;

    @Schema(description = "数量", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "数量不能为空")
    private Integer num;

    @Schema(description = "类型：次数，物品，金额", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
    @NotNull(message = "类型：次数，物品，金额不能为空")
    private Integer type;

    @Schema(description = "图片", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
    @NotNull(message = "图片不能为空")
    private String picUrl;
}
